package tv.acgn.advertisement.publish.vo.adunit;

import java.util.List;

import javax.validation.constraints.NotBlank;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tv.acgn.advertisement.publish.validator.message.AdUnitValidateMessage;

/**
 * @author : junG
 * @program : advertisement-ad-pub-vo-adUnit
 * @description : 推广单元关键字 请求对象
 * @date : 2019-05-26 01:36
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdUnitKeywordRequestVO {

    private List<UnitKeyword> unitKeywordList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class UnitKeyword {

        @NotBlank(message = AdUnitValidateMessage.UNIT_ID_NOT_BLANk)
        private String unitId;
        @NotBlank(message = AdUnitValidateMessage.KEYWORD_NOT_BLANK)
        private String keyword;
    }

}
